﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/MasterPages/Win.Master" 
    AutoEventWireup="true" CodeBehind="KnowledgeDetailList.aspx.cs" Inherits="DMS.Web.Modules.Knowledge.KnowledgeDetailList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageTitleInHeader" runat="server">办公物资小知识</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainHolder" runat="server">
<script type="text/javascript" src="/Resources/Scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="/Resources/Scripts/jquery.blockUI.js"></script>
    <script type="text/javascript">
        function getHandler(r) {
            $('#notice2').html(r.content);
            $('#title2').text(r.title);

            var fontsize = 25 - r.title.length / 5;
            if (fontsize <= 0)
                fontsize = 10
            if (r.title.length > 15)
                $('#title2').css("fontSize", fontsize);
            else if (r.title.length > 10)
                $('#title2').css("fontSize", fontsize);
            else
                $('#title2').css("fontSize", fontsize);
            $.blockUI({ message: $('#noticeArea2'),
                timeout: 999999999,
                css: {
                    theme: true,
                    top: 50,
                    left: ($(window).width() - 600) / 2 + 'px',
                    width: 610 + 'px',
                    '-webkit-border-radius': '10px',
                    '-moz-border-radius': '10px',
                    opacity: 1
                }
            });
        }

        function hide() {
            $.unblockUI();
        }      
    </script>

    <iframe src="/Modules/Knowledge/KnowledgeList.aspx?mode=view" frameborder="0" style="width:100%; height:100%"></iframe>
     <table width="100%" cellpadding="0" cellspacing="0" class="formitem_pagestyle">
        <tr>
            <td class="pagebutton" style="position: absolute; bottom: 25px; right: 20px">
                <nobr>
                        <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Themes/Default/btn5_close.gif" OnClientClick="window.close();"/>
                        </nobr>
            </td>
        </tr>
    </table>
    <div id="noticeArea2" style="display: none;width:610px; height:450px; overflow:auto">
        <table style="width:100%">
            <tr>
                <td style="background-image:url(/Themes/Default/opinion_button.png);background-repeat:repeat; text-align:center">
                        <font id="title2" size="4" style="padding-right:25px" color="white"></font>
                        <img style="position:absolute;right:5px;cursor:hand;" width="25px" height="25px" onclick="hide();" src="/Resources/Images/pause.png" />
                </td>
            </tr>
            <tr>
                <td>
                    <div id="notice2" pageIndex="1" style="width:600px; height:350px; overflow:auto;">
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <table align="center">
                        <tr>
                            <td>
                               <span id="Span8" runat="server">
                                    <input type="button" class="com_btn3" value="关闭" id="Button7" onclick="hide()" />
                                </span>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
 </asp:Content>
